package com.succodes.lostandfound.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.succodes.lostandfound.dto.PropertyAddEditParam;
import com.succodes.lostandfound.dto.PropertyQueryParam;
import com.succodes.lostandfound.entity.Property;
import com.baomidou.mybatisplus.extension.service.IService;
import com.succodes.lostandfound.vo.PropertyVo;

/**
 * <p>
 * 丢失的个人所有物，包括根据物品寻找失主和失主寻找失物 服务类
 * </p>
 *
 * @author 石炫杰
 * @since 2022-08-17
 */
public interface IPropertyService extends IService<Property> {

    /**
     * 查询失物列表
     * @param propertyQueryParam
     * @return
     */
    Page<PropertyVo> appPage(PropertyQueryParam propertyQueryParam);

    /**
     * 查询失物详情信息
     * @param propertyId
     * @return
     */
    PropertyVo detail(Long propertyId);

    /**
     * 发布失物信息
     * @param propertyAddEditParam
     * @return
     */
    Boolean add(PropertyAddEditParam propertyAddEditParam);
}
